import 'package:yurun_smartmerchants/models/qrcode_scan_entity.dart';

qrcodeScanEntityFromJson(QrcodeScanEntity data, Map<String, dynamic> json) {
	if (json['subjectNo'] != null) {
		data.subjectNo = json['subjectNo']?.toString();
	}
	if (json['type'] != null) {
		data.type = json['type']?.toInt();
	}
	return data;
}

Map<String, dynamic> qrcodeScanEntityToJson(QrcodeScanEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['subjectNo'] = entity.subjectNo;
	data['type'] = entity.type;
	return data;
}